/**
 iTextUploader
 (C) 2008 MyselftDev (myselftdev@gmail.com)
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

/* Revision: $Id: PreferencesView.h 118 2009-04-27 19:22:56Z myselftdev $ */

#import <UIKit/UIKit.h>

#import <UIKit/UILabel.h>
#import <UIKit/UITextField.h>
#import <UIKit/UITextInputTraits.h>
#import <UIKit/UITextView.h>
#import <UIKit/UIButton.h>
#import <UIKit/UIWebView.h>

#import "PreferencesData.h"
#import "PreferencesTableController.h"
#import "HomeView.h"
#import "MainView.h"

#import "Definitions.h"

@interface PreferencesView : UIView <UIWebViewDelegate, UINavigationBarDelegate> {
	UITableView			*preferencesTable;
	PreferencesTableController	*tableController;
	
	UIWebView			*aboutView;
	
	PreferencesData		*data;
	HomeView			*home;
	MainView			*mainView;
}

- (id)initWithFrame:(CGRect)frame
	dataObject:(PreferencesData*)theDataObject
	homeViewObject:(HomeView*)theHomeViewObject
	mainViewObject:(MainView*)theMainViewObject;
-(void)isGoingToVisible;
-(void)isGoingToHidden;
-(void)showAbout;
-(void)hideAbout;
-(void)donateButtonClicked;
-(void)enableAutomaticUpload:(BOOL)value;

@property (readonly) MainView* mainView;
@property (readonly) HomeView* home;
@property (readonly) UITableView* preferencesTable;

@end
